package com.wetao.module_homework.contract;

import com.wetao.lib_common.base.BaseListResponse;
import com.wetao.lib_common.base.BasePresenter;
import com.wetao.lib_common.base.BaseResponse;
import com.wetao.lib_common.base.BaseViewImp;
import com.wetao.lib_common.bean.response.CommitAssistantAnswerResp;
import com.wetao.lib_common.bean.response.GetAssistantQuestionList;
import com.wetao.lib_common.bean.response.GetSubjectExamNumber;
import com.wetao.lib_common.bean.response.QueryExamQuestionsResponse;
import com.wetao.lib_common.bean.response.StudentExamListInfo;

import java.util.HashMap;

/**
 * author: zhouyh
 * created on: 2019-11-15 16:27
 * description:
 */
public interface HomeworkLineActivityCon {

    interface View extends BaseViewImp {
        void getQuestionListResult(BaseResponse<QueryExamQuestionsResponse> response);
        void getQuestionListFailed();

        /*void courseExamQuestionResult(BaseResponse<QueryExamQuestionsResponse> response);
        void courseExamQuestionFailed();*/

        void getCommitAnswerResult(BaseResponse<CommitAssistantAnswerResp> response);
        void getCommitAnswerFailed();

        void queryClassroomTestQuestionListResult(BaseResponse<QueryExamQuestionsResponse> resp);
        void queryClassroomTestQuestionListFailed();
    }

    abstract class Presenter extends BasePresenter<View> {
        public abstract void getQuestionList(HashMap<String, Object> map, boolean isDialog, boolean isCancelable);
        public abstract void courseExamQuestionList(HashMap<String, Object> map, boolean isDialog, boolean isCancelable);
        public abstract void getCommitAnswer(String json, boolean isDialog, String tip, boolean isCancelable);
        public abstract void queryClassroomTestQuestionList(HashMap<String, String> map, boolean isDialog, boolean isCancelable);
    }
}
